//    Copyright (C) Kherty.  All rights reserved.
using System.Diagnostics.Contracts;
using OpenLS.Core.Serialization;

namespace OpenLS.Core.Serialization
{
    public abstract class ExtensionNode: IOfficeXmlSerializable
    {
        protected ExtensionNode()
        {
#if DEBUG
            
#endif
        }
        #region IOfficeXmlSerializable Members

        void IOfficeXmlSerializable.ReadXml(ReadContext context)
        {
            ReadXmlCore(context);
        }

        internal abstract  void ReadXmlCore(ReadContext context);

        internal abstract void WriteXmlCore(WriteContext context);

        void IOfficeXmlSerializable.WriteXml(WriteContext context)
        {
            WriteXmlCore(context);
        }

        #endregion
    }
}
